#! /bin/bash

sudo kubeadm reset -f
sudo systemctl stop kubelet
sudo systemctl stop containerd
sudo rm -rf /etc/cni/net.d
sudo rm -rf /etc/kubernetes/
sudo rm -rf /var/lib/cni/
sudo rm -rf /var/lib/kubelet/*
sudo rm -rf /var/lib/etcd
sudo rm -rf /var/run/kubernetes
sudo rm -rf /etc/containerd/config.toml

sudo cp ./config.toml /etc/containerd/

sudo systemctl restart containerd
sudo systemctl restart kubelet

